home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 October
/
EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso
/
Aminet
/
dev
/
c
/
auto_braces.readme
< prev
next >
Wrap
Text File
|
1995-07-02
|
2KB
|
40 lines
Short: Adds C braces based on indentation.
Author: rkr@olib.org
Uploader: Aminet.Uploader@olib.org
Type: dev/c
The basic idea: Read in a text file, and use indentation cues to know when
to insert open/close braces. The intention is to let you write C-like
source code in a more readable, less error-prone fashion (no braces to
distract/balance).
The output is kept reasonably readable, with optional #line directives to
get compiler-warnings/errors to correspond correctly. (Have the #line
directives generated if you are using auto-braces as a transparent step
during compilation; have the #line directives disabled if you plan to
_read_ the output of auto-braces.)
It is, more or less, a HACK. That is, it does not really grok C syntax,
and could behave more intelligently than it does, in several ways. To its
credit, though, it does recognize existing braces already in the file.
(Note: "Aminet.Uploader@olib.org" is in one sense exactly the same as
"rkr@olib.org", but the Aminet.Uploader "user" mailbox exists so that I
can have my mail automatically seperated somewhat as it arrives. olib.org
is my Amiga, running AmiTCP/IP.)
============================= Archive contents =============================
Original Packed Ratio Date Time Name
-------- ------- ----- --------- -------- -------------
20717 6767 67.3% 06-May-94 02:48:24 +ab.c
11516 7484 35.0% 29-Apr-95 09:34:08 +auto-braces
17202 6163 64.1% 06-May-94 02:34:36 +auto-braces.c
10805 4586 57.5% 06-May-94 03:14:08 +auto-braces.doc
265 175 33.9% 25-Oct-93 20:09:20 +auto-braces.test
981 619 36.9% 29-Apr-95 09:51:46 +copyright
1146 674 41.1% 30-Apr-95 06:33:38 auto-braces.readme
-------- ------- ----- --------- --------
62632 26468 57.7% 02-May-95 00:36:54 7 files